package org.dtrd.modules.dict.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.dict.entity.po.DtrdEntRdDicDistrict;

/**
 * @author qr
 * @date 2021/12/6 09:21
 */
@ApiModel("地区数据对象")
@Getter
@Setter
public class DistrictInfo {

    @ApiModelProperty("地区id")
    private Integer districtId;

    @ApiModelProperty("地区名字")
    private String name;

    public DistrictInfo(DtrdEntRdDicDistrict po) {
        this.name = po.getDistrictInfoDiName();
        this.districtId = po.getDistrictInfoDiId();
    }
}
